#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <algorithm>
#include <limits.h>
using namespace std;

class Solution {
public:
    int reverse(int x) {
        //Write code here
        int s= 0;
    }
};
#ifndef COMPILER_ONLINE

#include "header.cpp"

#endif
int ans_count = 0;

void Test1()
{
    int x = 123;
    //通过定义临时对象，来完成方法的调用
    int ret = Solution().reverse(x);
    if(ret == 321)
    {
        cout << "测试用例1 ...通过! 测试用例为123" << endl;
        ans_count++;
    }
    else
    {
        cout << "测试用例1 ...失败! 测试用例为123" << endl;
    }
}
void Test2()
{
    int x = -123;
    int ret = Solution().reverse(x);
    if(ret == -321)
    {
        cout << "测试用例2 ...通过! 测试用例为-123" << endl;
        ans_count++;
    }
    else
    {
        cout << "测试用例2 ...失败! 测试用例为-123" << endl;
    }
}
void Test3()
{
    int x = 120; 
    int ret = Solution().reverse(x);
    if(ret == 21)
    {
        cout << "测试用例3 ...通过! 测试用例为120" << endl;
        ans_count++;
    }
    else
    {
        cout << "测试用例3 ...失败! 测试用例为120" << endl;
    }
}
void Test4()
{
    int x = 0; 
    int ret = Solution().reverse(x);
    if(ret == 21)
    {
        cout << "测试用例4 ...通过! 测试用例为0" << endl;
        ans_count++;
    }
    else
    {
        cout << "测试用例4 ...失败! 测试用例为0" << endl;
    }
}
int main()
{
    Test1();
    Test2();
    Test3();
    Test4();
    if(ans_count == 3) cout << "恭喜你，通过全部测试用例！本题通过！" << endl;

}